/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bomberos;

import conexion.ConexionSql;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Edgar Augusto A
 */
public class ReporteAuxilioAccidentes extends javax.swing.JFrame {
    DefaultTableModel tabla = new DefaultTableModel();
    DefaultTableModel tabla1 = new DefaultTableModel();
    DefaultTableModel tabla2 = new DefaultTableModel();
    DefaultTableModel tabla3 = new DefaultTableModel();
    int NumeroUniversal;
    int FolioUniversal;
    int ContadorVehiculosComprometidos;
    int ContadorVictimasFatales;
    int ContadorHeridos;
    String dato7; // dato personal Asistente que va a mysql para ser eleminado
    String dato8; // dato personal Asistente que va a mysql para ser eleminado
    String dato9; // dato personal Asistente que va a mysql para ser eleminado
    String dato10; // dato personal Asistente que va a mysql para ser eleminado
    boolean estado7=false;
    boolean estado8=false;
    boolean estado9=false;
    boolean estado10=false;
    /**
     * Creates new form ReporteAuxilioAccidentes
     */
    public ReporteAuxilioAccidentes() {
        initComponents();
     String titulos[] = {"ID","NÚMERO","FOLIO","CLASE", "PLACAS", "COLOR","MODELO","MARCAS","EMPRESA","PROPIETARIO","CONDUCTOR"};
     tabla.setColumnIdentifiers(titulos);
     this.Jtabla.setModel(tabla);
     
     String titulos1[] = {"ID","NÚMERO","FOLIO","NOMBRE DE LA VICTIMA", "APELLIDO DE LA VICTIMA"};
     tabla1.setColumnIdentifiers(titulos1);
     this.jTable1.setModel(tabla1);
     
     String titulos2[] = {"ID","NÚMERO","FOLIO","NOMBRE DEL HERIDO", "APELLIDO DEL HERIDO"};
     tabla2.setColumnIdentifiers(titulos2);
     this.jTable2.setModel(tabla2);
     
     String titulos3[] = {"ID","NÚMERO","FOLIO","NOMBRE BOMBERO","APELLIDO BOMBERO","RANGO" };
     tabla3.setColumnIdentifiers(titulos3);
     this.jTable3.setModel(tabla3);
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane2 = new javax.swing.JTabbedPane();
        jTabbedPane3 = new javax.swing.JTabbedPane();
        Horario = new javax.swing.ButtonGroup();
        Servicio = new javax.swing.ButtonGroup();
        Zona = new javax.swing.ButtonGroup();
        Via = new javax.swing.ButtonGroup();
        Decide = new javax.swing.ButtonGroup();
        DecideDos = new javax.swing.ButtonGroup();
        DecideTres = new javax.swing.ButtonGroup();
        jPanel1 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        Numero = new javax.swing.JTextField();
        jPanel5 = new javax.swing.JPanel();
        Diurno = new javax.swing.JCheckBox();
        Nocturno = new javax.swing.JCheckBox();
        Urbano = new javax.swing.JCheckBox();
        Rural = new javax.swing.JCheckBox();
        Otra = new javax.swing.JCheckBox();
        jTextOtra = new javax.swing.JTextField();
        dateChooserCombo1 = new datechooser.beans.DateChooserCombo();
        jLabel5 = new javax.swing.JLabel();
        hora = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        minutos = new javax.swing.JTextField();
        horario = new javax.swing.JComboBox();
        minutos1 = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        hora1 = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        horario1 = new javax.swing.JComboBox();
        jLabel4 = new javax.swing.JLabel();
        NombreReporto = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        hora2 = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        minutos2 = new javax.swing.JTextField();
        horario2 = new javax.swing.JComboBox();
        jLabel11 = new javax.swing.JLabel();
        LugarAccidente = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        Direccion = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        hora3 = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        minutos3 = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        minutos4 = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        hora4 = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        hora5 = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        minutos5 = new javax.swing.JTextField();
        horario3 = new javax.swing.JComboBox();
        jLabel19 = new javax.swing.JLabel();
        Maquina = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        Kilometros = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        hora6 = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        minutos6 = new javax.swing.JTextField();
        jLabel23 = new javax.swing.JLabel();
        Motorista = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        jComboGrado = new javax.swing.JComboBox();
        jLabel25 = new javax.swing.JLabel();
        ComandanteGuardia = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel57 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        Folionumero = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        Comandante = new javax.swing.JTextField();
        jPanel3 = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        jLabel28 = new javax.swing.JLabel();
        Particular = new javax.swing.JCheckBox();
        Publico = new javax.swing.JCheckBox();
        Automovil = new javax.swing.JCheckBox();
        Taxi = new javax.swing.JCheckBox();
        Bus = new javax.swing.JCheckBox();
        Buseta = new javax.swing.JCheckBox();
        Colectivo = new javax.swing.JCheckBox();
        Camion = new javax.swing.JCheckBox();
        Tractomula = new javax.swing.JCheckBox();
        Camioneta = new javax.swing.JCheckBox();
        Volqueta = new javax.swing.JCheckBox();
        CarroTanque = new javax.swing.JCheckBox();
        Tractor = new javax.swing.JCheckBox();
        Motocicleta = new javax.swing.JCheckBox();
        Bicicleta = new javax.swing.JCheckBox();
        jTextOtros2 = new javax.swing.JTextField();
        Otros2 = new javax.swing.JCheckBox();
        jLabel29 = new javax.swing.JLabel();
        jPanel16 = new javax.swing.JPanel();
        Vegetales = new javax.swing.JCheckBox();
        Animales = new javax.swing.JCheckBox();
        Alimentos = new javax.swing.JCheckBox();
        Materiales = new javax.swing.JCheckBox();
        Quimicos = new javax.swing.JCheckBox();
        Combustibles = new javax.swing.JCheckBox();
        Otros3 = new javax.swing.JCheckBox();
        jTextOtros3 = new javax.swing.JTextField();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jPanel17 = new javax.swing.JPanel();
        ObjetoMovil = new javax.swing.JCheckBox();
        ObjetoFijo = new javax.swing.JCheckBox();
        Volcamiento = new javax.swing.JCheckBox();
        PeatonA = new javax.swing.JCheckBox();
        CiclistaA = new javax.swing.JCheckBox();
        Otro4 = new javax.swing.JCheckBox();
        jTextOtro4 = new javax.swing.JTextField();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jLabel32 = new javax.swing.JLabel();
        jPanel18 = new javax.swing.JPanel();
        Municipal = new javax.swing.JCheckBox();
        Departamental = new javax.swing.JCheckBox();
        Nacional = new javax.swing.JCheckBox();
        Asfaltada = new javax.swing.JCheckBox();
        Destapada = new javax.swing.JCheckBox();
        Pavimentada = new javax.swing.JCheckBox();
        jLabel33 = new javax.swing.JLabel();
        jTextLesionados = new javax.swing.JTextField();
        jLabel34 = new javax.swing.JLabel();
        jTextVictimasF = new javax.swing.JTextField();
        jPanel19 = new javax.swing.JPanel();
        Hidraulico = new javax.swing.JCheckBox();
        jTextHidraulico = new javax.swing.JTextField();
        Camillas = new javax.swing.JCheckBox();
        jTextCamillas = new javax.swing.JTextField();
        jTextCuellos = new javax.swing.JTextField();
        Cuellos = new javax.swing.JCheckBox();
        Jardinera = new javax.swing.JCheckBox();
        jTextJardinera = new javax.swing.JTextField();
        Manguera1 = new javax.swing.JCheckBox();
        jTextManguera1 = new javax.swing.JTextField();
        Manguera2 = new javax.swing.JCheckBox();
        jTextManguera2 = new javax.swing.JTextField();
        Galones = new javax.swing.JCheckBox();
        jTextGalones = new javax.swing.JTextField();
        Otro5 = new javax.swing.JCheckBox();
        jTextOtro5 = new javax.swing.JTextField();
        jLabel53 = new javax.swing.JLabel();
        jScrollPane7 = new javax.swing.JScrollPane();
        jTextAreaObserva = new javax.swing.JTextArea();
        jLabel35 = new javax.swing.JLabel();
        jButton6 = new javax.swing.JButton();
        jButton19 = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jPanel20 = new javax.swing.JPanel();
        jLabel43 = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        jLabel41 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        JtextClase = new javax.swing.JTextField();
        JtextPlacas = new javax.swing.JTextField();
        jLabel44 = new javax.swing.JLabel();
        JtextColor = new javax.swing.JTextField();
        JtextModelo = new javax.swing.JTextField();
        JtextMarcas = new javax.swing.JTextField();
        JtextEmpresa = new javax.swing.JTextField();
        Propietario = new javax.swing.JTextField();
        JtextConductor = new javax.swing.JTextField();
        jButton7 = new javax.swing.JButton();
        jLabel54 = new javax.swing.JLabel();
        jTextField24 = new javax.swing.JTextField();
        jButton5 = new javax.swing.JButton();
        jPanel21 = new javax.swing.JPanel();
        jLabel58 = new javax.swing.JLabel();
        jCheckBox1 = new javax.swing.JCheckBox();
        jCheckBox2 = new javax.swing.JCheckBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        Jtabla = new javax.swing.JTable();
        jPanel9 = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        jLabel38 = new javax.swing.JLabel();
        jLabel45 = new javax.swing.JLabel();
        NomVictima = new javax.swing.JTextField();
        ApeVictima = new javax.swing.JTextField();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        jLabel55 = new javax.swing.JLabel();
        jTextField25 = new javax.swing.JTextField();
        jPanel22 = new javax.swing.JPanel();
        jLabel59 = new javax.swing.JLabel();
        jCheckBox3 = new javax.swing.JCheckBox();
        jCheckBox4 = new javax.swing.JCheckBox();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jPanel10 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jLabel46 = new javax.swing.JLabel();
        jLabel47 = new javax.swing.JLabel();
        NomHerido = new javax.swing.JTextField();
        ApellidoHerido = new javax.swing.JTextField();
        jButton11 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jLabel56 = new javax.swing.JLabel();
        jTextField26 = new javax.swing.JTextField();
        jPanel23 = new javax.swing.JPanel();
        jLabel60 = new javax.swing.JLabel();
        jCheckBox5 = new javax.swing.JCheckBox();
        jCheckBox6 = new javax.swing.JCheckBox();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jPanel11 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTextAreaCinematica = new javax.swing.JTextArea();
        jButton15 = new javax.swing.JButton();
        jButton16 = new javax.swing.JButton();
        jPanel13 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        jLabel51 = new javax.swing.JLabel();
        jLabel52 = new javax.swing.JLabel();
        jTextField18 = new javax.swing.JTextField();
        jTextField19 = new javax.swing.JTextField();
        jButton13 = new javax.swing.JButton();
        jButton14 = new javax.swing.JButton();
        jComboBox1 = new javax.swing.JComboBox();
        jLabel61 = new javax.swing.JLabel();
        jLabel63 = new javax.swing.JLabel();
        jTextField27 = new javax.swing.JTextField();
        jScrollPane5 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        jPanel24 = new javax.swing.JPanel();
        jLabel62 = new javax.swing.JLabel();
        jCheckBox7 = new javax.swing.JCheckBox();
        jCheckBox8 = new javax.swing.JCheckBox();
        jPanel14 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTextAreaInformo = new javax.swing.JTextArea();
        jButton17 = new javax.swing.JButton();
        jButton18 = new javax.swing.JButton();

        jTabbedPane2.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
        jTabbedPane2.addTab("tab1", jTabbedPane3);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("REPORTE DE AUXILIO");

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setText("ACCIDENTE DE TRANSITO");

        jLabel3.setText("NÚMERO");

        jPanel5.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        Horario.add(Diurno);
        Diurno.setText("DIURNO");
        Diurno.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                DiurnoActionPerformed(evt);
            }
        });

        Horario.add(Nocturno);
        Nocturno.setText("NOCTURNO");
        Nocturno.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NocturnoActionPerformed(evt);
            }
        });

        Zona.add(Urbano);
        Urbano.setText("URBANO");
        Urbano.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UrbanoActionPerformed(evt);
            }
        });

        Zona.add(Rural);
        Rural.setText("RURAL");
        Rural.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RuralActionPerformed(evt);
            }
        });

        Zona.add(Otra);
        Otra.setText("OTRA");
        Otra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                OtraActionPerformed(evt);
            }
        });

        jTextOtra.setEnabled(false);

        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel5.setText("Hora de LLamada");

        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel6.setText(":");

        horario.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....", "AM", "PM" }));

        jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel7.setText("Hora de Salida");

        jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel8.setText(":");

        horario1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....", "AM", "PM" }));

        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel4.setText("Nombre de quien reporto el accidente");

        jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel9.setText("Hora de llegada al sitio del accidente");

        jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel10.setText(":");

        horario2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....", "AM", "PM" }));

        jLabel11.setText("Lugar Accidente");

        jLabel12.setText("Dirección");

        jLabel13.setText("Tiempo de Operación");

        jLabel14.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel14.setText(":");

        jLabel15.setText("Tiempo Complementario");

        jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel16.setText(":");

        jLabel17.setText("Hora de Regreso");

        jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel18.setText(":");

        horario3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....", "AM", "PM" }));

        jLabel19.setText("Maquina N°");

        jLabel20.setText("Kilómetros Recorridos");

        jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jLabel21.setText("Horas Hombre Trabajadas");

        jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel22.setText(":");

        jLabel23.setText("Motorista");

        jLabel24.setText("Grado");

        jComboGrado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....................", "Bombero raso", "Distiguido", "Cabo segundo", "Cabo primero", "Sargento segundo", "Sargento primero", "Sargento ayudante", "Oficiales", "Sub-teniente", "Teniente", "Capitan", "Mayor", "Teniente coronel", "Coronel", "Coronel encargado" }));

        jLabel25.setText("Comandante de Guardia");

        jButton1.setText("Guardar Datos");
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1MouseClicked(evt);
            }
        });

        jButton2.setText("Limpiar");
        jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton2MouseClicked(evt);
            }
        });

        jLabel57.setText("Fecha");

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(Diurno)
                        .addGap(18, 18, 18)
                        .addComponent(Nocturno)
                        .addGap(18, 18, 18)
                        .addComponent(Urbano)
                        .addGap(18, 18, 18)
                        .addComponent(Rural)
                        .addGap(18, 18, 18)
                        .addComponent(Otra)
                        .addGap(18, 18, 18)
                        .addComponent(jTextOtra))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(jPanel5Layout.createSequentialGroup()
                                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel5Layout.createSequentialGroup()
                                                .addComponent(jLabel11)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(LugarAccidente, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel5Layout.createSequentialGroup()
                                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jLabel13)
                                                    .addComponent(jLabel17)
                                                    .addComponent(jLabel20)
                                                    .addComponent(jLabel23)
                                                    .addComponent(jLabel25))
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                    .addGroup(jPanel5Layout.createSequentialGroup()
                                                        .addComponent(hora5, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                        .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                        .addComponent(minutos5, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addGap(12, 12, 12)
                                                        .addComponent(horario3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addGroup(jPanel5Layout.createSequentialGroup()
                                                        .addComponent(hora3, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                        .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                        .addComponent(minutos3, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addComponent(Kilometros)
                                                    .addComponent(Motorista)
                                                    .addComponent(ComandanteGuardia, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                        .addGap(18, 18, 18)
                                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel5Layout.createSequentialGroup()
                                                    .addComponent(jLabel12)
                                                    .addGap(18, 18, 18)
                                                    .addComponent(Direccion, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(jPanel5Layout.createSequentialGroup()
                                                    .addComponent(jLabel19)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(Maquina, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(jPanel5Layout.createSequentialGroup()
                                                    .addComponent(jLabel15)
                                                    .addGap(18, 18, 18)
                                                    .addComponent(hora4, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(minutos4, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(jPanel5Layout.createSequentialGroup()
                                                    .addComponent(jLabel24)
                                                    .addGap(18, 18, 18)
                                                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jComboGrado, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addGroup(jPanel5Layout.createSequentialGroup()
                                                            .addComponent(jButton1)
                                                            .addGap(28, 28, 28)
                                                            .addComponent(jButton2)))))
                                            .addGroup(jPanel5Layout.createSequentialGroup()
                                                .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(hora6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(minutos6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(26, 26, 26))))
                                    .addGroup(jPanel5Layout.createSequentialGroup()
                                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 302, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(47, 47, 47)
                                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(NombreReporto, javax.swing.GroupLayout.PREFERRED_SIZE, 258, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel5Layout.createSequentialGroup()
                                                .addComponent(hora2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(6, 6, 6)
                                                .addComponent(minutos2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(horario2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                        .addGap(13, 13, 13))))
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addGap(8, 8, 8)
                                .addComponent(jLabel57)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(dateChooserCombo1, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel5)
                                .addGap(18, 18, 18)
                                .addComponent(hora, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(minutos, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(horario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel7)
                                .addGap(18, 18, 18)
                                .addComponent(hora1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(minutos1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(horario1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(16, 16, 16)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Diurno)
                    .addComponent(Nocturno)
                    .addComponent(Urbano)
                    .addComponent(Rural)
                    .addComponent(Otra)
                    .addComponent(jTextOtra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(hora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6)
                            .addComponent(minutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(horario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(hora1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8)
                            .addComponent(minutos1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(horario1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(45, 45, 45))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel57, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(dateChooserCombo1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE))
                        .addGap(40, 40, 40)))
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(NombreReporto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(hora2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10)
                    .addComponent(minutos2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(horario2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(Direccion)
                    .addComponent(jLabel12)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(LugarAccidente)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(hora3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14)
                    .addComponent(minutos3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel13)
                    .addComponent(jLabel15)
                    .addComponent(hora4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16)
                    .addComponent(minutos4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(hora5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel18)
                    .addComponent(minutos5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(horario3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel19)
                    .addComponent(Maquina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel20)
                    .addComponent(Kilometros, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(hora6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel22)
                    .addComponent(minutos6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel21))
                .addGap(18, 18, 18)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(Motorista, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel24)
                    .addComponent(jComboGrado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel25)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(ComandanteGuardia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton1)
                        .addComponent(jButton2)))
                .addGap(28, 28, 28))
        );

        jLabel26.setText("FOLIO NÚMERO");

        jLabel27.setText("COMANDANTE DEL INCIDENTE");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(Numero, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel26)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(Folionumero, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel27)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(Comandante, javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)))
                .addContainerGap())
            .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2)
                .addGap(28, 28, 28)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(Numero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel26)
                    .addComponent(Folionumero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel27)
                    .addComponent(Comandante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(82, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("DATOS PRINCIPALES", jPanel2);

        jPanel15.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel28.setText("TIPO DE SERVICIO");

        Servicio.add(Particular);
        Particular.setText("PARTICULAR");

        Servicio.add(Publico);
        Publico.setText("PUBLICO");

        Automovil.setText("AUTOMÓVIL");

        Taxi.setText("TAXI");

        Bus.setText("BUS");

        Buseta.setText("BUSETA");

        Colectivo.setText("COLECTIVO");

        Camion.setText("CAMIÓN");

        Tractomula.setText("TRACTOMULA");

        Camioneta.setText("CAMIONETA");

        Volqueta.setText("VOLQUETA");

        CarroTanque.setText("CARRO TANQUE");

        Tractor.setText("TRACTOR");

        Motocicleta.setText("MOTOCICLETA");

        Bicicleta.setText("BICICLETA");

        jTextOtros2.setEnabled(false);
        jTextOtros2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextOtros2ActionPerformed(evt);
            }
        });

        Otros2.setText("OTROS");
        Otros2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Otros2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addGap(180, 180, 180)
                .addComponent(jLabel28)
                .addGap(18, 18, 18)
                .addComponent(Particular)
                .addGap(18, 18, 18)
                .addComponent(Publico)
                .addContainerGap(261, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
                        .addComponent(Automovil)
                        .addGap(18, 18, 18)
                        .addComponent(Taxi)
                        .addGap(18, 18, 18)
                        .addComponent(Bus)
                        .addGap(18, 18, 18)
                        .addComponent(Buseta)
                        .addGap(18, 18, 18)
                        .addComponent(Colectivo)
                        .addGap(18, 18, 18)
                        .addComponent(Camion)
                        .addGap(18, 18, 18)
                        .addComponent(Tractomula)
                        .addGap(20, 20, 20))
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addGap(106, 106, 106)
                        .addComponent(Volqueta)
                        .addGap(22, 22, 22)
                        .addComponent(Bicicleta)
                        .addGap(18, 18, 18)
                        .addComponent(CarroTanque)
                        .addGap(18, 18, 18)
                        .addComponent(Tractor)
                        .addGap(18, 18, 18)
                        .addComponent(Motocicleta))
                    .addComponent(Camioneta)
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addComponent(Otros2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTextOtros2, javax.swing.GroupLayout.PREFERRED_SIZE, 504, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(53, 53, 53))
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel28)
                    .addComponent(Particular)
                    .addComponent(Publico))
                .addGap(18, 18, 18)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Automovil, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(Bus)
                        .addComponent(Buseta)
                        .addComponent(Taxi)
                        .addComponent(Colectivo)
                        .addComponent(Camion)
                        .addComponent(Tractomula)))
                .addGap(18, 18, 18)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Volqueta, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(Camioneta)
                        .addComponent(CarroTanque)
                        .addComponent(Bicicleta)
                        .addComponent(Tractor)
                        .addComponent(Motocicleta)))
                .addGap(18, 18, 18)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextOtros2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Otros2))
                .addContainerGap(35, Short.MAX_VALUE))
        );

        jLabel29.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel29.setText("OTROS DATOS");

        jPanel16.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        Vegetales.setText("VEGETALES");

        Animales.setText("ANIMALES");

        Alimentos.setText("ALIMENTOS");

        Materiales.setText("MATERIALES");

        Quimicos.setText("QUIMICOS");

        Combustibles.setText("COMBUSTIBLES");

        Otros3.setText("OTROS");
        Otros3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Otros3ActionPerformed(evt);
            }
        });

        jTextOtros3.setEnabled(false);

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGap(56, 56, 56)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addComponent(Vegetales)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Animales)
                        .addGap(18, 18, 18)
                        .addComponent(Alimentos)
                        .addGap(18, 18, 18)
                        .addComponent(Materiales)
                        .addGap(18, 18, 18)
                        .addComponent(Quimicos)
                        .addGap(18, 18, 18)
                        .addComponent(Combustibles))
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addComponent(Otros3)
                        .addGap(18, 18, 18)
                        .addComponent(jTextOtros3, javax.swing.GroupLayout.PREFERRED_SIZE, 497, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Vegetales)
                    .addComponent(Animales)
                    .addComponent(Alimentos)
                    .addComponent(Materiales)
                    .addComponent(Quimicos)
                    .addComponent(Combustibles))
                .addGap(18, 18, 18)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Otros3)
                    .addComponent(jTextOtros3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel30.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel30.setText("MATERIALES TRANSPORTADOS");

        jLabel31.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel31.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel31.setText("TIPO DE ACCIDENTE");

        jPanel17.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        ObjetoMovil.setText("COLISIÓN CON OBJETO MÓVIL");

        ObjetoFijo.setText("COLISIÓN CON OBJETO FIJO");

        Volcamiento.setText("VOLCAMIENTO");

        PeatonA.setText("PEATÓN ATROPELLADO");

        CiclistaA.setText("CICLISTA ATROPELLADO");

        Otro4.setText("OTRA CLASE DE ACCIDENTE");
        Otro4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Otro4ActionPerformed(evt);
            }
        });

        jTextOtro4.setEnabled(false);

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addGap(58, 58, 58)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addComponent(Otro4)
                        .addGap(18, 18, 18)
                        .addComponent(jTextOtro4, javax.swing.GroupLayout.PREFERRED_SIZE, 458, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ObjetoMovil)
                            .addComponent(CiclistaA))
                        .addGap(41, 41, 41)
                        .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Volcamiento)
                            .addComponent(ObjetoFijo))
                        .addGap(40, 40, 40)
                        .addComponent(PeatonA)))
                .addContainerGap(29, Short.MAX_VALUE))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ObjetoMovil)
                    .addComponent(ObjetoFijo)
                    .addComponent(PeatonA))
                .addGap(18, 18, 18)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Volcamiento)
                    .addComponent(CiclistaA))
                .addGap(18, 18, 18)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Otro4)
                    .addComponent(jTextOtro4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jButton3.setText("Guardar Datos");
        jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton3MouseClicked(evt);
            }
        });

        jButton4.setText("Limpiar Datos");
        jButton4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton4MouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel16, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel31, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                                .addComponent(jLabel30)
                                .addGap(210, 210, 210))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                                .addComponent(jButton3)
                                .addGap(18, 18, 18)
                                .addComponent(jButton4)
                                .addGap(136, 136, 136))))))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel29)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jLabel30)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel31)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton3)
                    .addComponent(jButton4))
                .addContainerGap(55, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("OTROS DATOS UNO", jPanel3);

        jLabel32.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel32.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel32.setText("CARACTERÍTICAS DE LA VIA");

        jPanel18.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        Via.add(Municipal);
        Municipal.setText("VÍA MUNICIPAL");

        Via.add(Departamental);
        Departamental.setText("VÍA DEPARTAMENTAL");
        Departamental.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                DepartamentalActionPerformed(evt);
            }
        });

        Via.add(Nacional);
        Nacional.setText("VÍA NACIONAL");

        Via.add(Asfaltada);
        Asfaltada.setText("VÍA ASFALTADA");

        Via.add(Destapada);
        Destapada.setText("VÍA DESTAPADA");

        Via.add(Pavimentada);
        Pavimentada.setText("VÍA PAVIMENTADA");

        jLabel33.setText("NÚMERO DE LESIONADOS");

        jLabel34.setText("NÚMERO DE VICTIMAS FATALES");

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addComponent(Municipal)
                        .addGap(18, 18, 18)
                        .addComponent(Departamental)
                        .addGap(18, 18, 18)
                        .addComponent(Nacional)
                        .addGap(18, 18, 18)
                        .addComponent(Asfaltada)
                        .addGap(18, 18, 18)
                        .addComponent(Destapada))
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addComponent(Pavimentada)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel33)
                        .addGap(18, 18, 18)
                        .addComponent(jTextLesionados, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel34)
                        .addGap(18, 18, 18)
                        .addComponent(jTextVictimasF, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Municipal)
                    .addComponent(Departamental)
                    .addComponent(Nacional)
                    .addComponent(Asfaltada)
                    .addComponent(Destapada))
                .addGap(18, 18, 18)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Pavimentada)
                    .addComponent(jLabel33)
                    .addComponent(jTextLesionados, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel34)
                    .addComponent(jTextVictimasF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(24, Short.MAX_VALUE))
        );

        jPanel19.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        Hidraulico.setText("EQUIPO HIDRÁULICO");
        Hidraulico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                HidraulicoActionPerformed(evt);
            }
        });

        jTextHidraulico.setEnabled(false);

        Camillas.setText("CAMILLAS");
        Camillas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CamillasActionPerformed(evt);
            }
        });

        jTextCamillas.setEnabled(false);

        jTextCuellos.setEnabled(false);

        Cuellos.setText("CUELLOS");
        Cuellos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CuellosActionPerformed(evt);
            }
        });

        Jardinera.setText("JARDINERA");
        Jardinera.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JardineraActionPerformed(evt);
            }
        });

        jTextJardinera.setEnabled(false);

        Manguera1.setText("MANGUERA DE 1.5");
        Manguera1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Manguera1ActionPerformed(evt);
            }
        });

        jTextManguera1.setEnabled(false);

        Manguera2.setText("MANGUERA DE 2.5");
        Manguera2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Manguera2ActionPerformed(evt);
            }
        });

        jTextManguera2.setEnabled(false);

        Galones.setText("GALONES DE AGUA");
        Galones.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                GalonesActionPerformed(evt);
            }
        });

        jTextGalones.setEnabled(false);

        Otro5.setText("OTROS");
        Otro5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Otro5ActionPerformed(evt);
            }
        });

        jTextOtro5.setEnabled(false);

        jLabel53.setText("OTRAS OBSERVACIONES");

        jTextAreaObserva.setColumns(20);
        jTextAreaObserva.setRows(5);
        jScrollPane7.setViewportView(jTextAreaObserva);

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addComponent(jLabel53)
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane7))
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addComponent(Hidraulico)
                        .addGap(18, 18, 18)
                        .addComponent(jTextHidraulico, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(Camillas)
                        .addGap(18, 18, 18)
                        .addComponent(jTextCamillas, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(Cuellos)
                        .addGap(18, 18, 18)
                        .addComponent(jTextCuellos, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addComponent(Jardinera)
                        .addGap(18, 18, 18)
                        .addComponent(jTextJardinera, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(Manguera1)
                        .addGap(18, 18, 18)
                        .addComponent(jTextManguera1, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(Manguera2)
                        .addGap(18, 18, 18)
                        .addComponent(jTextManguera2, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addComponent(Galones)
                        .addGap(18, 18, 18)
                        .addComponent(jTextGalones, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(33, 33, 33)
                        .addComponent(Otro5)
                        .addGap(18, 18, 18)
                        .addComponent(jTextOtro5)))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Hidraulico)
                    .addComponent(jTextHidraulico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Camillas)
                    .addComponent(jTextCamillas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextCuellos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Cuellos))
                .addGap(18, 18, 18)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jTextJardinera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(Manguera1)
                        .addComponent(jTextManguera1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(Manguera2)
                        .addComponent(jTextManguera2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(Jardinera))
                .addGap(18, 18, 18)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(Galones)
                        .addComponent(jTextGalones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(Otro5)
                        .addComponent(jTextOtro5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel53)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(25, Short.MAX_VALUE))
        );

        jLabel35.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel35.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel35.setText("EQUIPO UTILIZADO");

        jButton6.setText("Limpiar Datos");
        jButton6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton6MouseClicked(evt);
            }
        });

        jButton19.setText("Guardar");
        jButton19.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton19MouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel32, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel35, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton19)
                .addGap(18, 18, 18)
                .addComponent(jButton6)
                .addGap(100, 100, 100))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addComponent(jLabel32)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel35)
                .addGap(18, 18, 18)
                .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(35, 35, 35)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton19)
                    .addComponent(jButton6))
                .addContainerGap(68, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("OTROS DATOS DOS", jPanel4);

        jPanel20.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel43.setText("Conductor");

        jLabel42.setText("Propietario");

        jLabel41.setText("Empresa");

        jLabel40.setText("Marcas");

        jLabel39.setText("Modelo");

        jLabel37.setText("Placas");

        jLabel36.setText("Clase");

        JtextClase.setEnabled(false);

        JtextPlacas.setEnabled(false);

        jLabel44.setText("Color");

        JtextColor.setEnabled(false);

        JtextModelo.setEnabled(false);

        JtextMarcas.setEnabled(false);

        JtextEmpresa.setEnabled(false);

        Propietario.setEnabled(false);

        JtextConductor.setEnabled(false);

        jButton7.setText("Guardar");
        jButton7.setEnabled(false);
        jButton7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton7MouseClicked(evt);
            }
        });

        jLabel54.setText("Contador de campos");

        jTextField24.setEditable(false);
        jTextField24.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField24ActionPerformed(evt);
            }
        });

        jButton5.setText("Eliminar");
        jButton5.setEnabled(false);
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jPanel21.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jLabel58.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel58.setText("¿Quiere agregar Vehiculo Comprometido?");

        Decide.add(jCheckBox1);
        jCheckBox1.setText("Si");
        jCheckBox1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox1ActionPerformed(evt);
            }
        });

        Decide.add(jCheckBox2);
        jCheckBox2.setSelected(true);
        jCheckBox2.setText("No");
        jCheckBox2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
        jPanel21.setLayout(jPanel21Layout);
        jPanel21Layout.setHorizontalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(jCheckBox1)
                .addGap(18, 18, 18)
                .addComponent(jCheckBox2)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jLabel58, javax.swing.GroupLayout.DEFAULT_SIZE, 224, Short.MAX_VALUE)
        );
        jPanel21Layout.setVerticalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel58)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCheckBox1)
                    .addComponent(jCheckBox2))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel20Layout.createSequentialGroup()
                                .addComponent(jLabel54)
                                .addGap(18, 18, 18)
                                .addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton7))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel20Layout.createSequentialGroup()
                                .addComponent(jLabel42)
                                .addGap(18, 18, 18)
                                .addComponent(Propietario, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel20Layout.createSequentialGroup()
                                .addComponent(jLabel43)
                                .addGap(18, 18, 18)
                                .addComponent(JtextConductor, javax.swing.GroupLayout.PREFERRED_SIZE, 267, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jButton5))
                        .addContainerGap(76, Short.MAX_VALUE))
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel20Layout.createSequentialGroup()
                                .addComponent(jLabel44)
                                .addGap(18, 18, 18)
                                .addComponent(JtextColor, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel41)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(JtextEmpresa))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel20Layout.createSequentialGroup()
                                .addComponent(jLabel36)
                                .addGap(18, 18, 18)
                                .addComponent(JtextClase, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel37)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(JtextPlacas, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel20Layout.createSequentialGroup()
                                .addComponent(jLabel39)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(JtextModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel40)
                                .addGap(18, 18, 18)
                                .addComponent(JtextMarcas, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(19, 19, 19))))
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel36)
                            .addComponent(JtextClase, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel37)
                            .addComponent(JtextPlacas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel39)
                            .addComponent(JtextModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel40)
                            .addComponent(JtextMarcas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel44)
                            .addComponent(JtextColor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel41)
                            .addComponent(JtextEmpresa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel20Layout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel42)
                    .addComponent(Propietario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel43)
                    .addComponent(JtextConductor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel54)
                    .addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton7)
                    .addComponent(jButton5))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        Jtabla.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(Jtabla);

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 730, Short.MAX_VALUE)
                    .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 385, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("VEHICULOS COMPROMETIDOS", jPanel6);

        jPanel7.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel38.setText("Nombre de la Victima");

        jLabel45.setText("Apellido de la Victima");

        NomVictima.setEnabled(false);

        ApeVictima.setEnabled(false);

        jButton9.setText("Guardar");
        jButton9.setEnabled(false);
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        jButton10.setText("Eliminar");
        jButton10.setEnabled(false);
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });

        jLabel55.setText("Contador de campos");

        jTextField25.setEditable(false);
        jTextField25.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField25ActionPerformed(evt);
            }
        });

        jPanel22.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jLabel59.setText("¿Quiere agregar Nombre Victima Fatales?");

        DecideDos.add(jCheckBox3);
        jCheckBox3.setText("Si");
        jCheckBox3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox3ActionPerformed(evt);
            }
        });

        DecideDos.add(jCheckBox4);
        jCheckBox4.setSelected(true);
        jCheckBox4.setText("No");
        jCheckBox4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox4ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
        jPanel22.setLayout(jPanel22Layout);
        jPanel22Layout.setHorizontalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel22Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel59)
                .addGap(37, 37, 37))
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(jCheckBox3)
                .addGap(18, 18, 18)
                .addComponent(jCheckBox4)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel22Layout.setVerticalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel59)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCheckBox3)
                    .addComponent(jCheckBox4))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel55)
                        .addGap(18, 18, 18)
                        .addComponent(jTextField25, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton9)
                        .addGap(18, 18, 18)
                        .addComponent(jButton10))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel45)
                        .addGap(18, 18, 18)
                        .addComponent(ApeVictima))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel38)
                        .addGap(18, 18, 18)
                        .addComponent(NomVictima, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(42, 42, 42)
                .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(39, 39, 39))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel38)
                    .addComponent(NomVictima, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel45)
                    .addComponent(ApeVictima, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel55)
                    .addComponent(jTextField25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton9)
                    .addComponent(jButton10))
                .addGap(23, 23, 23))
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane2.setViewportView(jTable1);

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 730, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(41, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("NOMBRE DE LAS VICTIMAS FATALES", jPanel9);

        jPanel8.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel46.setText("Nombre del Herido");

        jLabel47.setText("Apellido del Herido");

        NomHerido.setEnabled(false);

        ApellidoHerido.setEnabled(false);

        jButton11.setText("Guardar");
        jButton11.setEnabled(false);
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });

        jButton12.setText("Eliminar");
        jButton12.setEnabled(false);
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        jLabel56.setText("Contador de campos");

        jTextField26.setEditable(false);
        jTextField26.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField26ActionPerformed(evt);
            }
        });

        jPanel23.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jLabel60.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel60.setText("¿Quiere agregar Nombre Heridos?");

        DecideTres.add(jCheckBox5);
        jCheckBox5.setText("Si");
        jCheckBox5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox5ActionPerformed(evt);
            }
        });

        DecideTres.add(jCheckBox6);
        jCheckBox6.setText("No");
        jCheckBox6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox6ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(jCheckBox5)
                .addGap(18, 18, 18)
                .addComponent(jCheckBox6)
                .addContainerGap(55, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel60, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel60)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCheckBox5)
                    .addComponent(jCheckBox6))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addGap(44, 44, 44)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel56)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTextField26, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(46, 46, 46)
                        .addComponent(jButton11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButton12))
                    .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel8Layout.createSequentialGroup()
                            .addComponent(jLabel47)
                            .addGap(18, 18, 18)
                            .addComponent(ApellidoHerido))
                        .addGroup(jPanel8Layout.createSequentialGroup()
                            .addComponent(jLabel46)
                            .addGap(18, 18, 18)
                            .addComponent(NomHerido, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 71, Short.MAX_VALUE)
                .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel46)
                            .addComponent(NomHerido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel47)
                            .addComponent(ApellidoHerido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel56)
                            .addComponent(jButton11)
                            .addComponent(jButton12))))
                .addContainerGap(20, Short.MAX_VALUE))
        );

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane3.setViewportView(jTable2);

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane3))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(48, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("NOMBRE DE LOS HERIDOS", jPanel10);

        jTextAreaCinematica.setColumns(20);
        jTextAreaCinematica.setRows(5);
        jScrollPane4.setViewportView(jTextAreaCinematica);

        jButton15.setText("Guardar");
        jButton15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton15ActionPerformed(evt);
            }
        });

        jButton16.setText("Limpiar todo el texto");
        jButton16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton16ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.TRAILING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addContainerGap(485, Short.MAX_VALUE)
                .addComponent(jButton15)
                .addGap(18, 18, 18)
                .addComponent(jButton16)
                .addGap(45, 45, 45))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addContainerGap(69, Short.MAX_VALUE)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 497, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton15)
                    .addComponent(jButton16))
                .addGap(19, 19, 19))
        );

        jTabbedPane1.addTab("CINEMATICA DEL ACCIDENTE", jPanel11);

        jPanel12.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel51.setText("Nombres");

        jLabel52.setText("Apellidos");

        jTextField18.setEnabled(false);

        jTextField19.setEnabled(false);

        jButton13.setText("Guardar");
        jButton13.setEnabled(false);
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        jButton14.setText("Eliminar");
        jButton14.setEnabled(false);
        jButton14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton14ActionPerformed(evt);
            }
        });

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--------------", "OFICIAL", "SUBOFICIAL", "BOMBERO", " " }));
        jComboBox1.setEnabled(false);

        jLabel61.setText("Rango");

        jLabel63.setText("Contador de campos");

        jTextField27.setEditable(false);
        jTextField27.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField27ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addGap(0, 19, Short.MAX_VALUE)
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel52)
                            .addComponent(jLabel61)
                            .addComponent(jLabel51))
                        .addGap(46, 46, 46)
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel12Layout.createSequentialGroup()
                                .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(64, 64, 64)
                                .addComponent(jButton13)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton14))))
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addComponent(jLabel63)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(38, 38, 38))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel51)
                    .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel52)
                    .addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addGap(14, 14, 14)
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel61))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel63)))
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton13)
                            .addComponent(jButton14))))
                .addContainerGap(13, Short.MAX_VALUE))
        );

        jTable3.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane5.setViewportView(jTable3);

        jPanel24.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jLabel62.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel62.setText("¿Quiere agregar Unidades Asistentes?");

        DecideTres.add(jCheckBox7);
        jCheckBox7.setText("Si");
        jCheckBox7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox7ActionPerformed(evt);
            }
        });

        DecideTres.add(jCheckBox8);
        jCheckBox8.setSelected(true);
        jCheckBox8.setText("No");
        jCheckBox8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox8ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);
        jPanel24.setLayout(jPanel24Layout);
        jPanel24Layout.setHorizontalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(jCheckBox7)
                .addGap(18, 18, 18)
                .addComponent(jCheckBox8)
                .addContainerGap(55, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel24Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel62, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel24Layout.setVerticalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel62)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCheckBox7)
                    .addComponent(jCheckBox8))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 730, Short.MAX_VALUE)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 363, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(95, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("UNIDADES ASISTENTES", jPanel13);

        jTextAreaInformo.setColumns(20);
        jTextAreaInformo.setRows(5);
        jScrollPane6.setViewportView(jTextAreaInformo);

        jButton17.setText("Guardar");
        jButton17.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton17MouseClicked(evt);
            }
        });
        jButton17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton17ActionPerformed(evt);
            }
        });

        jButton18.setText("Limpiar todo el texto");
        jButton18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton18ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane6)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()
                .addContainerGap(491, Short.MAX_VALUE)
                .addComponent(jButton17)
                .addGap(18, 18, 18)
                .addComponent(jButton18)
                .addGap(39, 39, 39))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 510, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton17)
                    .addComponent(jButton18))
                .addContainerGap(64, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("DEL ANTERIOR ACCIDENTE SE INFORMO", jPanel14);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 670, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void DepartamentalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DepartamentalActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_DepartamentalActionPerformed

    private void Otro4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Otro4ActionPerformed
        if(Otro4.isSelected()==true){
        jTextOtro4.setEnabled(true);
        }else{
        jTextOtro4.setEnabled(false);
        jTextOtro4.setText("");
        }
    }//GEN-LAST:event_Otro4ActionPerformed

    private void Otros3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Otros3ActionPerformed
       if(Otros3.isSelected()==true){
        jTextOtros3.setEnabled(true);
       }else{
        jTextOtros3.setEnabled(false);
        jTextOtros3.setText("");
       }
    }//GEN-LAST:event_Otros3ActionPerformed

    private void Otros2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Otros2ActionPerformed
      if(Otros2.isSelected()==true){
        jTextOtros2.setEnabled(true);
      }else{
        jTextOtros2.setEnabled(false);
        jTextOtros2.setText("");
      }
    }//GEN-LAST:event_Otros2ActionPerformed

    private void jTextOtros2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextOtros2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextOtros2ActionPerformed

    private void OtraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OtraActionPerformed
        jTextOtra.setEnabled(true);
    }//GEN-LAST:event_OtraActionPerformed

    private void RuralActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RuralActionPerformed
        jTextOtra.setEnabled(false);
    }//GEN-LAST:event_RuralActionPerformed

    private void UrbanoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_UrbanoActionPerformed
        jTextOtra.setEnabled(false);
    }//GEN-LAST:event_UrbanoActionPerformed

    private void NocturnoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NocturnoActionPerformed
        jTextOtra.setEnabled(false);
    }//GEN-LAST:event_NocturnoActionPerformed

    private void DiurnoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DiurnoActionPerformed
        jTextOtra.setEnabled(false);
    }//GEN-LAST:event_DiurnoActionPerformed

    private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseClicked
    Numero.setText("");
    Folionumero.setText("");
    Comandante.setText("");
    Nocturno.setSelected(false);
    Diurno.setSelected(false);
    Urbano.setSelected(false);
    Rural.setSelected(false);
    Otra.setSelected(false);
    jTextOtra.setText("");
    hora.setText("");
    minutos.setText("");
    horario.setSelectedIndex(0);
    hora1.setText("");
    minutos1.setText("");
    horario1.setSelectedIndex(0);
    NombreReporto.setText("");
    hora2.setText("");
    minutos2.setText("");
    horario2.setSelectedItem(0);
    LugarAccidente.setText("");
    Direccion.setText("");
    hora3.setText("");
    minutos3.setText("");
    hora4.setText("");
    minutos4.setText("");
    hora5.setText("");
    minutos5.setText("");
    horario3.setSelectedIndex(0);
    Maquina.setText("");
    Kilometros.setText("");
    hora6.setText("");
    minutos6.setText("");
    Motorista.setText("");
    jComboGrado.setSelectedIndex(0);
    ComandanteGuardia.setText("");
    }//GEN-LAST:event_jButton2MouseClicked

    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
    
    String patronNumerico = "([0-9]+)";
    String patronTexto = "([a-zA-Z]+)";    
    Pattern p2 = Pattern.compile(patronNumerico);
    
    String Num=Numero.getText();
    Matcher matcherNumero = p2.matcher(Num);
    if(Num.equals("")){
    JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Número");
    }else if (matcherNumero.matches()){
    NumeroUniversal=Integer.parseInt(Num);
    }else{
    JOptionPane.showMessageDialog(null, "En el Campo Número solo debe ingresar Números");
    }
    String FolioNumero=Folionumero.getText();
    Matcher matcherFolioNumero = p2.matcher(FolioNumero);
    if (FolioNumero.equals("")) {
    JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Folio Número");        
    }else if(matcherFolioNumero.matches()){
    FolioUniversal=Integer.parseInt(FolioNumero);
    }else{
    JOptionPane.showMessageDialog(null, "En el Campo Folio Número solo debe ingresar Números");
    }
    String Comandan=Comandante.getText();
    String EstadoH="";
        if (Diurno.isSelected()) {
        EstadoH="Diurno";   
        }else if(Nocturno.isSelected()){
        EstadoH="Nocturno";
        }
       String ZonaB="";
        if (Urbano.isSelected()) {
        ZonaB="Urbano";   
        }else if(Rural.isSelected()){
        ZonaB="Rural";
        }else if(Otra.isSelected()){
        ZonaB=jTextOtra.getText();
        }
     String fecha=dateChooserCombo1.getText();
     String Horallamada=hora.getText()+":"+minutos.getText()+"-"+horario.getSelectedItem();
     String Horasalida=hora1.getText()+":"+minutos1.getText()+"-"+horario1.getSelectedItem();
     String NombreReporteAccidente=NombreReporto.getText();
     String Horadellagadasitio=hora2.getText()+":"+minutos2.getText()+"-"+horario2.getSelectedItem();
     String Lugaraccidente=LugarAccidente.getText();
     String Direccionaccidente=Direccion.getText();
     String TiempoOperacion=hora3.getText()+":"+minutos3.getText();
     String TiempoComplementario=hora4.getText()+":"+minutos4.getText();
     String HoraRegreso=hora5.getText()+":"+minutos5.getText()+"-"+horario3.getSelectedItem();
     String NumeroMaquina=Maquina.getText();
     String KilometrosRe=Kilometros.getText();
     String HorasHTrabajadas=hora6.getText()+":"+minutos6.getText();
     String MotoristaMaquina=Motorista.getText();
     String Grado=jComboGrado.getSelectedItem()+"";
     String ComandanteG=ComandanteGuardia.getText();
     
     Pattern p1 = Pattern.compile(patronTexto);
     Matcher matcherComandante = p1.matcher(Comandan);
     
     Matcher matcherNumHora = p2.matcher(hora.getText());
     Matcher matcherNumMinutos = p2.matcher(minutos.getText());
     Matcher matcherNumHora1 = p2.matcher(hora1.getText());
     Matcher matcherNumMinutos1 = p2.matcher(minutos1.getText());
     Matcher matcherNumHora2 = p2.matcher(hora2.getText());
     Matcher matcherNumMinutos2 = p2.matcher(minutos2.getText());
     Matcher matcherNumHora3 = p2.matcher(hora3.getText());
     Matcher matcherNumMinutos3 = p2.matcher(minutos3.getText());
     Matcher matcherNumHora4 = p2.matcher(hora4.getText());
     Matcher matcherNumMinutos4 = p2.matcher(minutos4.getText());
     Matcher matcherNumHora5 = p2.matcher(hora5.getText());
     Matcher matcherNumMinutos5 = p2.matcher(minutos5.getText());
     Matcher matcherNumHora6 = p2.matcher(hora6.getText());
     Matcher matcherNumMinutos6 = p2.matcher(minutos6.getText());
     Matcher matcherMaquina = p2.matcher(NumeroMaquina);
     Matcher matcherKilometros = p2.matcher(KilometrosRe);
     
        if (Comandan.equals("")) {
        JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Comandante del Incidente");    
        }else if(matcherComandante.matches()){
        if(EstadoH.equals("")){
        JOptionPane.showMessageDialog(null, "No se selecciono la Jornada del día Diurno o Nocturno");  
        }else if(ZonaB.equals("")){
        JOptionPane.showMessageDialog(null, "No se selecciono la Zona del Accidente");  
        }else if(fecha.equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Fecha");    
        }else if(hora.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso la hora en el campo Hora de llamada");
        }else if(matcherNumHora.matches()){
        if(Integer.parseInt(hora.getText())>=1 && Integer.parseInt(hora.getText())<=12 ){
        if(minutos.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso los Minutos en el campo Hora de llamada");
        }else if(matcherNumMinutos.matches()){
        if(Integer.parseInt(minutos.getText())>=0 && Integer.parseInt(minutos.getText())<=59 ){
        if(horario.getSelectedIndex()==0){
        JOptionPane.showMessageDialog(null, "No se ingreso el sistema horario AM o PM en el campo Hora de llamada" );
        }else if(hora1.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso la hora en el campo Hora de Salida");
        }else if(matcherNumHora1.matches()){
        if(Integer.parseInt(hora1.getText())>=1 && Integer.parseInt(hora1.getText())<=12 ){
        if(minutos1.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso los Minutos en el campo Hora de Salida");    
        }else if(matcherNumMinutos1.matches()){
        if(Integer.parseInt(minutos1.getText())>=0 && Integer.parseInt(minutos1.getText())<=59){
        if(horario1.getSelectedIndex()==0){
        JOptionPane.showMessageDialog(null, "No se ingreso el sistema horario AM o PM en el campo Hora de Salida" );
        }else if(NombreReporteAccidente.equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Nombre de quien reporto el accidente");  
        }else if(hora2.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso la hora en el campo \n Hora de llegada al sitio del accidente");
        }else if(matcherNumHora2.matches()){
        if(Integer.parseInt(hora2.getText())>=1 && Integer.parseInt(hora2.getText())<=12 ){
        if(minutos2.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso los Minutos en el campo Hora de llegada al sitio del accidente");
        }else if(matcherNumMinutos2.matches()){
        if(Integer.parseInt(minutos2.getText())>=0 && Integer.parseInt(minutos2.getText())<=59){
        if(horario2.getSelectedIndex()==0){
        JOptionPane.showMessageDialog(null, "No se ingreso el sistema horario AM o PM en el campo \n Hora de llegada al sitio del accidente" );
        }else if(Lugaraccidente.equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Lugar Accidente");  
        }else if(Direccionaccidente.equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Dirección");  
        }else if(hora3.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso horas en el campo Tiempo de Operación");
        }else if(matcherNumHora3.matches()){
        if(Integer.parseInt(hora3.getText())>=1 && Integer.parseInt(hora3.getText())<=24 ){
        if(minutos3.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso los Minutos en el campo Tiempo de Operación"); 
        }else if(matcherNumMinutos3.matches()){
        if(Integer.parseInt(minutos3.getText())>=0 && Integer.parseInt(minutos3.getText())<=59){
        if(hora4.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso horas en el campo Tiempo Complementario");
        }else if(matcherNumHora4.matches()){
        if(Integer.parseInt(hora4.getText())>=1 && Integer.parseInt(hora4.getText())<=24 ){
        if(minutos4.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso los Minutos en el campo Tiempo Complementario"); 
        }else if(matcherNumMinutos4.matches()){
        if(Integer.parseInt(minutos4.getText())>=0 && Integer.parseInt(minutos4.getText())<=59){
        if(hora5.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso la hora en el campo Hora de Regreso");
        }else if(matcherNumHora5.matches()){
        if(Integer.parseInt(hora5.getText())>=1 && Integer.parseInt(hora5.getText())<=12 ){
        if(minutos5.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso los Minutos en el campo Hora de Regreso"); 
        }else if(matcherNumMinutos5.matches()){
        if(Integer.parseInt(minutos5.getText())>=0 && Integer.parseInt(minutos5.getText())<=59){//
        if(horario3.getSelectedIndex()==0){
        JOptionPane.showMessageDialog(null, "No se ingreso el sistema horario AM o PM en el campo Hora de Regreso" );
        }else if(NumeroMaquina.equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Maquina N°");  
        }else if(matcherMaquina.matches()){
        if(KilometrosRe.equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Kilómetros Recorridos");  
        }else if(matcherKilometros.matches()){
        if(hora6.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso horas en el campo Horas Hombre Trabajadas");
        }else if(matcherNumHora6.matches()){
        if(Integer.parseInt(hora6.getText())>=1 && Integer.parseInt(hora6.getText())<=24 ){
        if(minutos6.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso los Minutos en el campo Hombre Trabajadas"); 
        }else if(matcherNumMinutos6.matches()){
        if(Integer.parseInt(minutos6.getText())>=0 && Integer.parseInt(minutos6.getText())<=59){
        if(MotoristaMaquina.equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Motorista"); 
        }else if(jComboGrado.getSelectedIndex()==0){
        JOptionPane.showMessageDialog(null, "No se eligio Datos en el campo Grado");
        }else if(ComandanteG.equals("")){
        JOptionPane.showMessageDialog(null, "No Ingreso Datos en el campo Comandante de Guardia");
        }else{
        // aqui se debe insertar la instruccion sql para insertardatos
            
        Statement sta = ConexionSql.conectarse();
        String entra =  "insert into accidentetransito values (" + Num + "," + FolioNumero + ",'" + Comandan + "','"+EstadoH+"','"+ZonaB+"','"+fecha+"','"+Horallamada+"','"+Horasalida+"','"+NombreReporteAccidente+"','"+Horadellagadasitio+"','"+Lugaraccidente+"','"+Direccionaccidente+"','"+TiempoOperacion+"','"+TiempoComplementario+"','"+HoraRegreso+"',"+NumeroMaquina+","+KilometrosRe+",'"+HorasHTrabajadas+"','"+MotoristaMaquina+"','"+Grado+"','"+ComandanteG+"')";
          //System.out.println(entra);
    try {
        if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
        {
            JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
        }
        else {
        JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

        }
    } catch (SQLException ex) {
        Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
    }    
                
        //finaliza insert sql
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo campo Hombre Trabajadas \n los Minutos solo puede contener números del 0 al 59 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Hombre Trabajadas se ingreso letras \n ingrese los Minutos correctamente");
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo  Horas Hombre Trabajadas la hora solo puede contener números del 1 al 24 ");
        }
        }else{
         JOptionPane.showMessageDialog(null, "En en el campo Horas Hombre Trabajadas se ingreso letras \n ingrese Números");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En el campo Kilómetros Recorridos solo puede ingresar Números ");
        }
        }else {
        JOptionPane.showMessageDialog(null, "En el campo Maquina N° solo puede ingresar Números ");
        }   //
        }else{
        JOptionPane.showMessageDialog(null, "El campo campo Hora de Regreso \n los Minutos solo puede contener números del 0 al 59 ");
        }
        }else{
         JOptionPane.showMessageDialog(null, "En en el campo Hora de Regreso \n se ingreso letras ingrese los Minutos correctamente");
        }
        }else{
         JOptionPane.showMessageDialog(null, "El campo Hora de Regreso \n la hora solo puede contener números del 1 al 12 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Hora de Regreso \n se ingreso letras ingrese la Hora correctamente");
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo campo Tiempo Complementario \n los Minutos solo puede contener números del 0 al 59 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Tiempo Complementario se ingreso letras \n ingrese los Minutos correctamente");
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Tiempo Complementario la hora solo puede contener números del 1 al 24 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Tiempo Complementario se ingreso letras \n ingrese Números");
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo campo Tiempo de Operación \n los Minutos solo puede contener números del 0 al 59 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Tiempo de Operación se ingreso letras \n ingrese los Minutos correctamente");
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Tiempo de Operación la hora solo puede contener números del 1 al 24 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Tiempo de Operación se ingreso letras \n ingrese Números");
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo campo Hora de llegada al sitio del accidente \n los Minutos solo puede contener números del 0 al 59 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Hora de llegada al sitio del accidente \n se ingreso letras ingrese los Minutos correctamente");
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Hora de llegada al sitio del accidente \n la hora solo puede contener números del 1 al 12 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Hora de llegada al sitio del accidente \n se ingreso letras ingrese la Hora correctamente");
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Hora de salida los Minutos solo puede contener números del 0 al 59 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Hora de Salida se ingreso letras \n ingrese los Minutos correctamente");
        }    
        }else{
        JOptionPane.showMessageDialog(null, "El campo Hora de Salida la hora solo puede contener números del 1 al 12 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Hora de Salida se ingreso letras \n ingrese la Hora correctamente");
        }    
        }else{
        JOptionPane.showMessageDialog(null, "El campo Hora llamada los Minutos solo puede contener números del 0 al 59 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Hora llamada se ingreso letras \n ingrese los Minutos correctamente");
        }    
        }else{
        JOptionPane.showMessageDialog(null, "El campo Hora llamada la hora solo puede contener números del 1 al 12 ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En en el campo Hora llamada se ingreso letras \n ingrese la Hora correctamente");
        }
        }else{
        JOptionPane.showMessageDialog(null, "En el Campo Comandante del incidente\n solo debe ingresar Letras");
        }
     
     
    }//GEN-LAST:event_jButton1MouseClicked

    private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton3MouseClicked
    String Transporte="";
        if (Particular.isSelected()) {
         Transporte="Particular";   
        }else if(Publico.isSelected()){
         Transporte="Publico";
        }
    String automovil=null;
        if (Automovil.isSelected()) {
        automovil="Si";    
        } else {
        automovil="No";    
        }
    String taxi=null;
        if (Taxi.isSelected()) {
        taxi="Si";    
        } else {
        taxi="No";    
        }
    String bus=null;
        if (Bus.isSelected()) {
         bus="Si";   
        } else {
         bus="No";   
        }
    String buseta=null;
        if (Buseta.isSelected()) {
         buseta="Si";   
        } else {
         buseta="No";   
        }
    String colectivo=null;
        if (Colectivo.isSelected()) {
         colectivo="Si";   
        } else {
         colectivo="No";   
        }
    String camion=null;
        if (Camion.isSelected()) {
          camion="Si";  
        } else {
          camion="No";  
        }
    String tractomula=null;
        if (Tractomula.isSelected()) {
          tractomula="Si";  
        } else {
          tractomula="No";  
        }
    String camioneta=null;
        if (Camioneta.isSelected()) {
          camioneta="Si";  
        } else {
          camioneta="No";
        }
    String volqueta=null;
        if (Volqueta.isSelected()) {
          volqueta="Si";  
        } else {
          volqueta="No";  
        }
    String carrotanque=null;
        if (CarroTanque.isSelected()) {
           carrotanque="Si"; 
        } else {
           carrotanque="No"; 
        }
    String tractor=null;
        if (Tractor.isSelected()) {
           tractor="Si"; 
        } else {
           tractor="No"; 
        }
    String motocicleta=null;
        if (Motocicleta.isSelected()) {
            motocicleta="Si";
        } else {
            motocicleta="No";
        }
    String bicicleta=null;
        if (Bicicleta.isSelected()) {
           bicicleta="Si"; 
        } else {
           bicicleta="No"; 
        }
    String Otros=null;
        if (Otros2.isSelected()) {
          Otros=jTextOtros2.getText();
        } else {
          Otros="No";  
        }
     String vegetales=null;
        if (Vegetales.isSelected()) {
           vegetales="Si"; 
        } else {
           vegetales="No"; 
        }
     String animales=null;
        if (Animales.isSelected()) {
            animales="Si";
        } else {
            animales="No";
        }
     String alimentos=null;
        if (Alimentos.isSelected()) {
            alimentos="Si";
        } else {
            alimentos="No";
        }
     String materiales=null;
        if (Materiales.isSelected()) {
           materiales="Si"; 
        } else {
            materiales="No";
        }
     String quimicos=null;
        if (Quimicos.isSelected()) {
            quimicos="Si";
        } else {
            quimicos="No";
        }
     String combustibles=null;
        if (Combustibles.isSelected()) {
            combustibles="Si";
        } else {
            combustibles="No";
        }
     String Otros1=null;
        if (Otros3.isSelected()) {
            Otros1=jTextOtros3.getText();
        } else {
            Otros1="No";
        }
     String Objetomovil=null;
        if (ObjetoMovil.isSelected()) {
            Objetomovil="Si";
        } else {
            Objetomovil="No";
        }
     String Objetofijo=null;
        if (ObjetoFijo.isSelected()) {
            Objetofijo="Si";
        } else {
            Objetofijo="No";
        }
     String volcamiento=null;
        if (Volcamiento.isSelected()) {
            volcamiento="Si";
        } else {
            volcamiento="No";
        }
     String peatonAtropellado;
        if (PeatonA.isSelected()) {
            peatonAtropellado="Si";
        } else {
            peatonAtropellado="No";
        }
     String CiclistaAtropellado=null;
        if (CiclistaA.isSelected()) {
            CiclistaAtropellado="Si";
        } else {
            CiclistaAtropellado="No";
        }
     String Otra2=null;
        if (Otro4.isSelected()) {
            Otra2=jTextOtro4.getText();
        } else {
            Otra2="No";
        }
        
        if(Transporte.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso el Tipo de Servicio");
        }else if(Otros2.isSelected()){
        if(jTextOtros2.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso Datos en el Primer Campo Otros");
        }else{
         // Inicia instrucción insert 
        Statement sta = ConexionSql.conectarse();
          String entra =  "insert into datosunoaccidentetransito values ("+null+"," + NumeroUniversal + ",'" + FolioUniversal + "','" +Transporte+ "','"+automovil+"','"+taxi+"','"+bus+"','"+buseta+"','"+colectivo+"','"+camion+"','"+tractomula+"','"+camioneta+"','"+volqueta+"','"+carrotanque+"','"+tractor+"','"+motocicleta+"','"+bicicleta+"','"+Otros+"','"+vegetales+"','"+animales+"','"+alimentos+"','"+materiales+"','"+quimicos+"','"+combustibles+"','"+Otros1+"','"+Objetomovil+"','"+Objetofijo+"','"+volcamiento+"','"+peatonAtropellado+"','"+CiclistaAtropellado+"','"+Otra2+"')";
          System.out.println(entra);
    try {
        if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
        {
            JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
        }
        else {
        JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

        }
    } catch (SQLException ex) {
        Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
    }    
       //Finaliza instruccion insert 
        }
        }else if(Otros3.isSelected()){
        if(jTextOtros3.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso Datos en el Segundo Campo Otros");
        }else{
         // Inicia instrucción insert 
        Statement sta = ConexionSql.conectarse();
          String entra =  "insert into datosunoaccidentetrancito values ("+null+"," + NumeroUniversal + ",'" + FolioUniversal + "','" +Transporte+ "','"+automovil+"','"+taxi+"','"+bus+"','"+buseta+"','"+colectivo+"','"+camion+"','"+tractomula+"','"+camioneta+"','"+volqueta+"','"+carrotanque+"','"+tractor+"','"+motocicleta+"','"+bicicleta+"','"+Otros+"','"+vegetales+"','"+animales+"','"+alimentos+"','"+materiales+"','"+quimicos+"','"+combustibles+"','"+Otros1+"','"+Objetomovil+"','"+Objetofijo+"','"+volcamiento+"','"+peatonAtropellado+"','"+CiclistaAtropellado+"','"+Otra2+"')";
          System.out.println(entra);
    try {
        if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
        {
            JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
        }
        else {
        JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

        }
    } catch (SQLException ex) {
        Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
    }    
       //Finaliza instruccion insert 
        }
        }else if(Otro4.isSelected()){
        if(jTextOtro4.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso Datos en el Tercer Campo Otros");
        }else{
         // Inicia instrucción insert 
        Statement sta = ConexionSql.conectarse();
          String entra =  "insert into datosunoaccidentetrancito values ("+null+"," + NumeroUniversal + ",'" + FolioUniversal + "','" +Transporte+ "','"+automovil+"','"+taxi+"','"+bus+"','"+buseta+"','"+colectivo+"','"+camion+"','"+tractomula+"','"+camioneta+"','"+volqueta+"','"+carrotanque+"','"+tractor+"','"+motocicleta+"','"+bicicleta+"','"+Otros+"','"+vegetales+"','"+animales+"','"+alimentos+"','"+materiales+"','"+quimicos+"','"+combustibles+"','"+Otros1+"','"+Objetomovil+"','"+Objetofijo+"','"+volcamiento+"','"+peatonAtropellado+"','"+CiclistaAtropellado+"','"+Otra2+"')";
          System.out.println(entra);
    try {
        if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
        {
            JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
        }
        else {
        JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

        }
    } catch (SQLException ex) {
        Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
    }    
       //Finaliza instruccion insert 
        }
        }else{
       // Inicia instrucción insert 
        Statement sta = ConexionSql.conectarse();
          String entra =  "insert into datosunoaccidentetrancito values ("+null+"," + NumeroUniversal + ",'" + FolioUniversal + "','" +Transporte+ "','"+automovil+"','"+taxi+"','"+bus+"','"+buseta+"','"+colectivo+"','"+camion+"','"+tractomula+"','"+camioneta+"','"+volqueta+"','"+carrotanque+"','"+tractor+"','"+motocicleta+"','"+bicicleta+"','"+Otros+"','"+vegetales+"','"+animales+"','"+alimentos+"','"+materiales+"','"+quimicos+"','"+combustibles+"','"+Otros1+"','"+Objetomovil+"','"+Objetofijo+"','"+volcamiento+"','"+peatonAtropellado+"','"+CiclistaAtropellado+"','"+Otra2+"')";
          System.out.println(entra);
    try {
        if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
        {
            JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
        }
        else {
        JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

        }
    } catch (SQLException ex) {
        Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
    }    
       //Finaliza instruccion insert  
        
        }
        
        
    }//GEN-LAST:event_jButton3MouseClicked

    private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton4MouseClicked
  Particular.setSelected(false);
  Publico.setSelected(false);
  Automovil.setSelected(false);
  Taxi.setSelected(false);
  Bus.setSelected(false);
  Buseta.setSelected(false);
  Colectivo.setSelected(false);
  Camion.setSelected(false);
  Tractomula.setSelected(false);
  Camioneta.setSelected(false);
  Volqueta.setSelected(false);
  CarroTanque.setSelected(false);
  Tractor.setSelected(false);
  Motocicleta.setSelected(false);
  Bicicleta.setSelected(false);
  Otros2.setSelected(false);
  jTextOtros2.setText("");
  Vegetales.setSelected(false);
  Animales.setSelected(false);
  Alimentos.setSelected(false);
  Materiales.setSelected(false);
  Quimicos.setSelected(false);
  Combustibles.setSelected(false);
  Otros3.setSelected(false);
  jTextOtros3.setText("");
  ObjetoMovil.setSelected(false);
  ObjetoFijo.setSelected(false);
  Volcamiento.setSelected(false);
  PeatonA.setSelected(false);
  CiclistaA.setSelected(false);
  Otro4.setSelected(false);
  jTextOtro4.setText("");
    }//GEN-LAST:event_jButton4MouseClicked

    private void jButton19MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton19MouseClicked
    String via="";
        if (Municipal.isSelected()) {
            via="Municipal";
        } else if(Departamental.isSelected()){
            via="Departamental";
        } else if(Nacional.isSelected()){
            via="Nacional";
        } else if(Asfaltada.isSelected()){
            via="Asfaltada";
        } else if(Destapada.isSelected()){
            via="Destapada";
        } else if(Pavimentada.isSelected()){
            via="Pavimentada";
        }
     String NumLesionados=jTextLesionados.getText();
     String NumVictimas=jTextVictimasF.getText();
     String hidraulico=null;
        if (Hidraulico.isSelected()) {
         hidraulico=jTextHidraulico.getText();
        }else{
         hidraulico="No";
        }
     String camillas=null;
        if (Camillas.isSelected()) {
         camillas=jTextCamillas.getText();
        }else{
        camillas="No";
        }
     String cuellos=null;
        if (Cuellos.isSelected()) {
         cuellos=jTextCuellos.getText();
        }else{
         cuellos="No";
        }
     String jardinera=null;
        if (Jardinera.isSelected()) {
         jardinera=jTextJardinera.getText();
        }else{
         jardinera="No";
        }
     String manguera1;
        if (Manguera1.isSelected()) {
         manguera1=jTextManguera1.getText();
        }else{
         manguera1="No";
        }
     String manguera2;
        if (Manguera2.isSelected()) {
         manguera2=jTextManguera2.getText();
        }else{
        manguera2="No";
        }
     String galones;
        if (Galones.isSelected()) {
         galones=jTextGalones.getText();
        }else{
         galones="No";
        }
     String Otros3=null;
        if (Otro5.isSelected()) {
         Otros3=jTextOtro5.getText();
        }else{
        Otros3="No";
        }
     String OtrasObservaciones=jTextAreaObserva.getText();
     
     if(via.equals("")){
     JOptionPane.showMessageDialog(null, "No se seleccionó las características de la vía");
     }else if(NumLesionados.equals("")){
     JOptionPane.showMessageDialog(null, "No se ingreso el Número de Lesionados");
     }else if(NumVictimas.equals("")){
     JOptionPane.showMessageDialog(null, "No se ingreso el Número de Victimas Fatales");
     }else if(OtrasObservaciones.equals("")){
     JOptionPane.showMessageDialog(null, "No se ingresarón observaciones \n si no hay observaciones ingresar la palabra NINGUNA");
     }else{
      // Inicia instrucción insert 
        Statement sta = ConexionSql.conectarse();
          String entra =  "insert into datosdosaccidentetransito values (" + null + "," + NumeroUniversal + "," + FolioUniversal + ",'"+via+"','"+NumLesionados+"','"+NumVictimas+"','"+hidraulico+"','"+camillas+"','"+cuellos+"','"+jardinera+"','"+manguera1+"','"+manguera2+"','"+galones+"','"+Otros3+"','"+OtrasObservaciones+"')";
          //System.out.println(entra);
    try {
        if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
        {
            JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
        }
        else {
        JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

        }
    } catch (SQLException ex) {
        Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
    }    
       //Finaliza instruccion insert     
     }
     
    }//GEN-LAST:event_jButton19MouseClicked

    private void jButton6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton6MouseClicked
     Municipal.setSelected(false);
     Departamental.setSelected(false);
     Nacional.setSelected(false);
     Asfaltada.setSelected(false);
     Destapada.setSelected(false);
     Pavimentada.setSelected(false);
     jTextLesionados.setText("");
     jTextVictimasF.setText("");
     Hidraulico.setSelected(false);
     jTextHidraulico.setText("");
     Camillas.setSelected(false);
     jTextCamillas.setText("");
     Cuellos.setSelected(false);
     jTextCuellos.setText("");
     Jardinera.setSelected(false);
     jTextJardinera.setText("");
     Manguera1.setSelected(false);
     jTextManguera1.setText("");
     Manguera2.setSelected(false);
     jTextManguera2.setText("");
     Galones.setSelected(false);
     jTextGalones.setText("");
     Otro5.setSelected(false);
     jTextOtro5.setText("");
     jTextAreaObserva.setText("");
    }//GEN-LAST:event_jButton6MouseClicked

    private void HidraulicoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_HidraulicoActionPerformed
    if(Hidraulico.isSelected()==true){
        jTextHidraulico.setEnabled(true);
    }else{
        jTextHidraulico.setEnabled(false);
        jTextHidraulico.setText("");
    }   
    }//GEN-LAST:event_HidraulicoActionPerformed

    private void CamillasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CamillasActionPerformed
   if(Camillas.isSelected()==true){
        jTextCamillas.setEnabled(true);
   }else{
       jTextCamillas.setEnabled(false);
       jTextCamillas.setText("");
   } 

    }//GEN-LAST:event_CamillasActionPerformed

    private void CuellosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CuellosActionPerformed
    if(Cuellos.isSelected()==true){    
        jTextCuellos.setEnabled(true);
    }else{
        jTextCuellos.setEnabled(false);
        jTextCuellos.setText("");
    }   
    }//GEN-LAST:event_CuellosActionPerformed

    private void JardineraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JardineraActionPerformed
    if(Jardinera.isSelected()==true){
        jTextJardinera.setEnabled(true);
    }else{
        jTextJardinera.setEnabled(false);
        jTextJardinera.setText("");
    }   
    }//GEN-LAST:event_JardineraActionPerformed

    private void Manguera1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Manguera1ActionPerformed
    if(Manguera1.isSelected()==true){
        jTextManguera1.setEnabled(true);
    }else{
        jTextManguera1.setEnabled(false);
        jTextManguera1.setText("");
    }    
    }//GEN-LAST:event_Manguera1ActionPerformed

    private void Manguera2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Manguera2ActionPerformed
    if(Manguera2.isSelected()==true){
        jTextManguera2.setEnabled(true);
    }else{
        jTextManguera2.setEnabled(false);
        jTextManguera2.setText("");
    }    
    }//GEN-LAST:event_Manguera2ActionPerformed

    private void GalonesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_GalonesActionPerformed
    if(Galones.isSelected()==true){
        jTextGalones.setEnabled(true);
    }else{
        jTextGalones.setEnabled(false);
        jTextGalones.setText("");
    }    
    }//GEN-LAST:event_GalonesActionPerformed

    private void Otro5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Otro5ActionPerformed
    if(Otro5.isSelected()==true){
        jTextOtro5.setEnabled(true);
    }else{
        jTextOtro5.setEnabled(false);
        jTextOtro5.setText("");
    }
    }//GEN-LAST:event_Otro5ActionPerformed

    private void jButton7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton7MouseClicked
        // faltael patron de texto
        int n;
        String insertar7;
        String datos7[] = new String[11];
        int datomysql7=0;
        // Almacena informacion arreglo tabla
        
        if(JtextClase.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Clase");
        }else if(JtextPlacas.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Placas");
        }else if(JtextModelo.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Modelo");    
        }else if(JtextMarcas.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Marcas");   
        }else if(JtextColor.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Color");   
        }else if(JtextEmpresa.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Empresa");   
        }else if(Propietario.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Propietario");   
        }else if(JtextConductor.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Conductor");   
        }else{
         //
        //ejecucion de insercion
        if(estado7==false){
            //Finaliza Estado de consulta mysql Estado des sistema false
            Statement algo = ConexionSql.conectarse();
            String consultar_t = "SELECT MAX(IdDato) AS ID FROM vehiculoscomprometidos";
            ResultSet acep;
                try {
                  acep = algo.executeQuery(consultar_t);
                  while (acep.next()) {
                  datomysql7=Integer.parseInt(acep.getString("ID"));
                 // System.out.println(datomysql6);
                  }
        //ingresos de datos a la tabla
        datos7[0]=datomysql7+1+"";
        datos7[1]=NumeroUniversal+"";
        datos7[2]=FolioUniversal+"";
        datos7[3] = this.JtextClase.getText();
        this.JtextClase.setText(null);
        datos7[4] = this.JtextPlacas.getText();
        this.JtextPlacas.setText(null);
        datos7[5] = this.JtextColor.getText();
        this.JtextColor.setText(null);
        datos7[6] = this.JtextModelo.getText();
        this.JtextModelo.setText(null);
        datos7[7] = this.JtextMarcas.getText();
        this.JtextMarcas.setText(null);
        datos7[8] = this.JtextEmpresa.getText();
        this.JtextEmpresa.setText(null);
        datos7[9] = this.Propietario.getText();
        this.Propietario.setText(null);
        datos7[10] = this.JtextConductor.getText();
        this.JtextConductor.setText(null);
        tabla.addRow(datos7);
        this.JtextClase.grabFocus();
        n = Jtabla.getRowCount();
        jTextField24.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos7[0]=datomysql7+1+"";                 
        insertar7=""+datos7[0]+","+datos7[1]+",'"+datos7[2]+"','"+datos7[3]+"','"+datos7[5]+"','"+datos7[6]+"','"+datos7[4]+"','"+datos7[7]+"','"+datos7[8]+"','"+datos7[9]+"','"+datos7[10]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into vehiculoscomprometidos values ("+insertar7+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        //Finaliza inserción  a la base de datos estado false            
                } catch (SQLException ex) {
                    Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
                }
            //Finaliza Estado de consulta mysql Estado des sistema false  
         
            //inserción  a la base de datos estado true    
        }else if(estado7==true){
            
        //ingresos de datos a la tabla
        datos7[0]=dato7;
        datos7[1]=NumeroUniversal+"";
        datos7[2]=FolioUniversal+"";
        datos7[3] = this.JtextClase.getText();
        this.JtextClase.setText(null);
        datos7[4] = this.JtextPlacas.getText();
        this.JtextPlacas.setText(null);
        datos7[5] = this.JtextColor.getText();
        this.JtextColor.setText(null);
        datos7[6] = this.JtextModelo.getText();
        this.JtextModelo.setText(null);
        datos7[7] = this.JtextMarcas.getText();
        this.JtextMarcas.setText(null);
        datos7[8] = this.JtextEmpresa.getText();
        this.JtextEmpresa.setText(null);
        datos7[9] = this.Propietario.getText();
        this.Propietario.setText(null);
        datos7[10] = this.JtextConductor.getText();
        this.JtextConductor.setText(null);
        tabla.addRow(datos7);
        this.JtextClase.grabFocus();
        n = Jtabla.getRowCount();
        jTextField24.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos7[0]=dato7;                 
        insertar7=""+datos7[0]+","+datos7[1]+",'"+datos7[2]+"','"+datos7[3]+"','"+datos7[5]+"','"+datos7[6]+"','"+datos7[4]+"','"+datos7[7]+"','"+datos7[8]+"','"+datos7[9]+"','"+datos7[10]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into vehiculoscomprometidos values ("+insertar7+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  estado7=false;
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
        // finaliza ejecucion de insercion
            //
        
        
        }
    }//GEN-LAST:event_jButton7MouseClicked

    private void jTextField24ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField24ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField24ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        int fila2, n2;
        estado7=true;
        fila2 = this.Jtabla.getSelectedRow();
        if (fila2 >= 0) {
            dato7=(String)Jtabla.getValueAt(fila2,0);
            tabla.removeRow(fila2);
            n2 = tabla.getRowCount();
            jTextField24.setText("" + n2);
                Statement sta = ConexionSql.conectarse();
        String entra = "DELETE FROM vehiculoscomprometidos WHERE IdDato="+dato7+"";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Eliminación correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Eliminación incorrecta");
              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }else {
            JOptionPane.showMessageDialog(null, "No selecciono ningun campo");
        }
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
       //falta patron
        int n;
        String insertar8;
        String datos8[] = new String[5];
        int datomysql8=0;
        
        if(NomVictima.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Nombre de la Victima");
        }else if (ApeVictima.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Apellido de la Victima");
        }else{
        //
        //ejecucion de insercion
        if(estado8==false){
            //Finaliza Estado de consulta mysql Estado des sistema false
            Statement algo = ConexionSql.conectarse();
            String consultar_t = "SELECT MAX(IdDato) AS ID FROM victimasfatales";
            ResultSet acep;
                try {
                  acep = algo.executeQuery(consultar_t);
                  while (acep.next()) {
                  datomysql8=Integer.parseInt(acep.getString("ID"));
                 // System.out.println(datomysql6);
                  }
        //ingresos de datos a la tabla
        datos8[0]=datomysql8+1+"";           
        datos8[1]=NumeroUniversal+"";
        datos8[2]=FolioUniversal+"";
        datos8[3] = this.NomVictima.getText();
        this.NomVictima.setText(null);
        datos8[4] = this.ApeVictima.getText();
        this.ApeVictima.setText(null);
        tabla1.addRow(datos8);
        this.NomVictima.grabFocus();
        n = jTable1.getRowCount();
        jTextField25.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos8[0]=datomysql8+1+"";                 
        insertar8=""+datos8[0]+","+datos8[1]+",'"+datos8[2]+"','"+datos8[3]+"','"+datos8[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into victimasfatales values ("+insertar8+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        //Finaliza inserción  a la base de datos estado false            
                } catch (SQLException ex) {
                    Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
                }
            //Finaliza Estado de consulta mysql Estado des sistema false  
         
            //inserción  a la base de datos estado true    
        }else if(estado8==true){
            
        //ingresos de datos a la tabla
        datos8[0]=dato8;           
        datos8[1]=NumeroUniversal+"";
        datos8[2]=FolioUniversal+"";
        datos8[3] = this.NomVictima.getText();
        this.NomVictima.setText(null);
        datos8[4] = this.ApeVictima.getText();
        this.ApeVictima.setText(null);
        tabla1.addRow(datos8);
        this.NomVictima.grabFocus();
        n = jTable1.getRowCount();
        jTextField25.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos8[0]=dato8;                 
        insertar8=""+datos8[0]+","+datos8[1]+",'"+datos8[2]+"','"+datos8[3]+"','"+datos8[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into victimasfatales values ("+insertar8+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  estado8=false;
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
        // finaliza ejecucion de insercion
            //
       }
        
        
    }//GEN-LAST:event_jButton9ActionPerformed

    private void jTextField25ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField25ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField25ActionPerformed

    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
    int fila2, n2;
   estado8=true;
        fila2 = this.jTable1.getSelectedRow();
        if (fila2 >= 0) {
            dato8=(String)jTable1.getValueAt(fila2,0);
            tabla1.removeRow(fila2);
            n2 = tabla1.getRowCount();
            jTextField25.setText("" + n2);
            
        Statement sta = ConexionSql.conectarse();
        String entra = "DELETE FROM victimasfatales WHERE IdDato="+dato8+"";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Eliminación correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Eliminación incorrecta");
              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        }else {
            JOptionPane.showMessageDialog(null, "No selecciono ningun campo");
        }
    }//GEN-LAST:event_jButton10ActionPerformed

    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
       // falta patron de texto
        int n;
        String insertar9;
        String datos9[] = new String[5];
        int datomysql9=0;
        
        if(NomHerido.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Nombre del Herido");
        }else if (ApellidoHerido.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Apellido del Herido");
        }else{
 
        //
        //ejecucion de insercion
        if(estado9==false){
            //Finaliza Estado de consulta mysql Estado des sistema false
            Statement algo = ConexionSql.conectarse();
            String consultar_t = "SELECT MAX(IdDato) AS ID FROM heridos";
            ResultSet acep;
                try {
                  acep = algo.executeQuery(consultar_t);
                  while (acep.next()) {
                  datomysql9=Integer.parseInt(acep.getString("ID"));
                 // System.out.println(datomysql6);
                  }
        //ingresos de datos a la tabla
        datos9[0]=datomysql9+1+"";          
        datos9[1]=NumeroUniversal+"";
        datos9[2]=FolioUniversal+"";
        datos9[3] = this.NomHerido.getText();
        this.NomHerido.setText(null);
        datos9[4] = this.ApellidoHerido.getText();
        this.ApellidoHerido.setText(null);
        tabla2.addRow(datos9);
        this.NomHerido.grabFocus();
        n = jTable2.getRowCount();
        jTextField26.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos9[0]=datomysql9+1+"";                 
        insertar9=""+datos9[0]+","+datos9[1]+",'"+datos9[2]+"','"+datos9[3]+"','"+datos9[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into heridos values ("+insertar9+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        //Finaliza inserción  a la base de datos estado false            
                } catch (SQLException ex) {
                    Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
                }
            //Finaliza Estado de consulta mysql Estado des sistema false  
         
            //inserción  a la base de datos estado true    
        }else if(estado9==true){
            
        //ingresos de datos a la tabla
        datos9[0]=dato9;          
        datos9[1]=NumeroUniversal+"";
        datos9[2]=FolioUniversal+"";
        datos9[3] = this.NomHerido.getText();
        this.NomHerido.setText(null);
        datos9[4] = this.ApellidoHerido.getText();
        this.ApellidoHerido.setText(null);
        tabla2.addRow(datos9);
        this.NomHerido.grabFocus();
        n = jTable2.getRowCount();
        jTextField26.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos9[0]=dato9;                 
        insertar9=""+datos9[0]+","+datos9[1]+",'"+datos9[2]+"','"+datos9[3]+"','"+datos9[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into heridos values ("+insertar9+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  estado9=false;
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
        // finaliza ejecucion de insercion
            //
        }
    }//GEN-LAST:event_jButton11ActionPerformed

    private void jTextField26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField26ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField26ActionPerformed

    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
    int fila2, n2;
    estado9=true;
        fila2 = this.jTable2.getSelectedRow();
        if (fila2 >= 0) {
            dato9=(String)jTable2.getValueAt(fila2,0);
            tabla2.removeRow(fila2);
            n2 = tabla2.getRowCount();
            jTextField26.setText("" + n2);
            
            Statement sta = ConexionSql.conectarse();
        String entra = "DELETE FROM heridos WHERE IdDato="+dato9+"";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Eliminación correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Eliminación incorrecta");
              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        }else {
            JOptionPane.showMessageDialog(null, "No selecciono ningun campo");
        }
        
    }//GEN-LAST:event_jButton12ActionPerformed

    private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton15ActionPerformed
    String cinematica=jTextAreaCinematica.getText();
     String insertarsql;                
        insertarsql="0,"+NumeroUniversal+",'"+FolioUniversal+"','"+cinematica+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into cinematicaaccidente values ("+insertarsql+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  jButton15.setEnabled(false);
                  jButton16.setEnabled(false);
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton15ActionPerformed

    private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton16ActionPerformed
    jTextAreaCinematica.setText("");
    }//GEN-LAST:event_jButton16ActionPerformed

    private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton17ActionPerformed
    String informo=jTextAreaInformo.getText();
    String insertarsql2;                
        insertarsql2="0,"+NumeroUniversal+",'"+FolioUniversal+"','"+informo+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into informeaccidente values ("+insertarsql2+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  jButton18.setEnabled(false);
                  jButton17.setEnabled(false);
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton17ActionPerformed

    private void jButton18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton18ActionPerformed
    jTextAreaInformo.setText("");
    }//GEN-LAST:event_jButton18ActionPerformed

    private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed
    JtextClase.setEnabled(true);
JtextModelo.setEnabled(true);
JtextColor.setEnabled(true);
JtextPlacas.setEnabled(true);
JtextMarcas.setEnabled(true);
JtextEmpresa.setEnabled(true);
Propietario.setEnabled(true);
JtextConductor.setEnabled(true);
jButton7.setEnabled(true);
jButton5.setEnabled(true);
    }//GEN-LAST:event_jCheckBox1ActionPerformed

    private void jCheckBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox2ActionPerformed
JtextClase.setEnabled(false);
JtextModelo.setEnabled(false);
JtextColor.setEnabled(false);
JtextPlacas.setEnabled(false);
JtextMarcas.setEnabled(false);
JtextEmpresa.setEnabled(false);
Propietario.setEnabled(false);
JtextConductor.setEnabled(false);
jButton7.setEnabled(false);
jButton5.setEnabled(false);
    }//GEN-LAST:event_jCheckBox2ActionPerformed

    private void jCheckBox3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox3ActionPerformed
    NomVictima.setEnabled(true);
ApeVictima.setEnabled(true);
jButton9.setEnabled(true);
jButton10.setEnabled(true);
    }//GEN-LAST:event_jCheckBox3ActionPerformed

    private void jCheckBox4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox4ActionPerformed
NomVictima.setEnabled(false);
ApeVictima.setEnabled(false);
jButton9.setEnabled(false);
jButton10.setEnabled(false);
    }//GEN-LAST:event_jCheckBox4ActionPerformed

    private void jCheckBox5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox5ActionPerformed
NomHerido.setEnabled(true);
ApellidoHerido.setEnabled(true);
jButton11.setEnabled(true);
jButton12.setEnabled(true);
    }//GEN-LAST:event_jCheckBox5ActionPerformed

    private void jCheckBox6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox6ActionPerformed
    NomHerido.setEnabled(false);
ApellidoHerido.setEnabled(false);
jButton11.setEnabled(false);
jButton12.setEnabled(false);
    }//GEN-LAST:event_jCheckBox6ActionPerformed

    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
        int n;
        String insertar10;
        String datos10[] = new String[6];
        int datomysql10=0;
        
        if(jTextField18.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Nombre de la unidad");
        }else if (jTextField19.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Apellido de la unidad");
        }else if(jComboBox1.getSelectedIndex()==0){
        JOptionPane.showMessageDialog(null, "No se ingreso el rango");
        }else{
        
        //
        //ejecucion de insercion
        if(estado10==false){
            //Finaliza Estado de consulta mysql Estado des sistema false
            Statement algo = ConexionSql.conectarse();
            String consultar_t = "SELECT MAX(idUnidadesAsistentes) AS ID FROM unidadesasistentes";
            ResultSet acep;
                try {
                  acep = algo.executeQuery(consultar_t);
                  while (acep.next()) {
                  datomysql10=Integer.parseInt(acep.getString("ID"));
                 // System.out.println(datomysql6);
                  }
        //ingresos de datos a la tabla
        datos10[0]=datomysql10+1+"";          
        datos10[1]=NumeroUniversal+"";
        datos10[2]=FolioUniversal+"";
        datos10[3] = this.jTextField18.getText();
        this.jTextField18.setText(null);
        datos10[4] = this.jTextField19.getText();
        this.jTextField19.setText(null);
        datos10[5]=this.jComboBox1.getSelectedItem()+"";
        jComboBox1.setSelectedIndex(0);
        tabla3.addRow(datos10);
        this.jTextField18.grabFocus();
        n = jTable3.getRowCount();
        jTextField27.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos10[0]=datomysql10+1+"";                 
        insertar10=""+datos10[0]+","+datos10[1]+",'"+datos10[2]+"','"+datos10[3]+"','"+datos10[4]+"','"+datos10[5]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into unidadesasistentes values ("+insertar10+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        //Finaliza inserción  a la base de datos estado false            
                } catch (SQLException ex) {
                    Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
                }
            //Finaliza Estado de consulta mysql Estado des sistema false  
         
            //inserción  a la base de datos estado true    
        }else if(estado10==true){
            
        //ingresos de datos a la tabla
        datos10[0]=dato10;          
        datos10[1]=NumeroUniversal+"";
        datos10[2]=FolioUniversal+"";
        datos10[3] = this.jTextField18.getText();
        this.jTextField18.setText(null);
        datos10[4] = this.jTextField19.getText();
        this.jTextField19.setText(null);
        datos10[5]=this.jComboBox1.getSelectedItem()+"";
        jComboBox1.setSelectedIndex(0);
        tabla3.addRow(datos10);
        this.jTextField18.grabFocus();
        n = jTable3.getRowCount();
        jTextField27.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos10[0]=dato10;                 
       insertar10=""+datos10[0]+","+datos10[1]+",'"+datos10[2]+"','"+datos10[3]+"','"+datos10[4]+"','"+datos10[5]+"'";
        Statement sta = ConexionSql.conectarse();
                String entra = "insert into unidadesasistentes values ("+insertar10+")";

        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  estado10=false;
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
        // finaliza ejecucion de insercion
            //
        }
    }//GEN-LAST:event_jButton13ActionPerformed

    private void jCheckBox7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox7ActionPerformed
    jTextField18.setEnabled(true);
    jTextField19.setEnabled(true);
    jComboBox1.setEnabled(true);
    jButton13.setEnabled(true);
    jButton14.setEnabled(true);
    
    }//GEN-LAST:event_jCheckBox7ActionPerformed

    private void jCheckBox8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox8ActionPerformed
    jTextField18.setEnabled(false);
    jTextField19.setEnabled(false);
    jComboBox1.setEnabled(false);
    jButton13.setEnabled(false);
    jButton14.setEnabled(false);
    }//GEN-LAST:event_jCheckBox8ActionPerformed

    private void jTextField27ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField27ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField27ActionPerformed

    private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton14ActionPerformed
     int fila2, n2;
    estado10=true;
        fila2 = this.jTable3.getSelectedRow();
        if (fila2 >= 0) {
            dato10=(String)jTable3.getValueAt(fila2,0);
            tabla3.removeRow(fila2);
            n2 = tabla3.getRowCount();
            jTextField27.setText("" + n2);
            
            Statement sta = ConexionSql.conectarse();
        String entra = "DELETE FROM unidadesasistentes WHERE idUnidadesAsistentes="+dato10+"";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Eliminación correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Eliminación incorrecta");
              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        }else {
            JOptionPane.showMessageDialog(null, "No selecciono ningun campo");
        }
        
    }//GEN-LAST:event_jButton14ActionPerformed

    private void jButton17MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton17MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton17MouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(ReporteAuxilioAccidentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(ReporteAuxilioAccidentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(ReporteAuxilioAccidentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(ReporteAuxilioAccidentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ReporteAuxilioAccidentes().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JCheckBox Alimentos;
    private javax.swing.JCheckBox Animales;
    private javax.swing.JTextField ApeVictima;
    private javax.swing.JTextField ApellidoHerido;
    private javax.swing.JCheckBox Asfaltada;
    private javax.swing.JCheckBox Automovil;
    private javax.swing.JCheckBox Bicicleta;
    private javax.swing.JCheckBox Bus;
    private javax.swing.JCheckBox Buseta;
    private javax.swing.JCheckBox Camillas;
    private javax.swing.JCheckBox Camion;
    private javax.swing.JCheckBox Camioneta;
    private javax.swing.JCheckBox CarroTanque;
    private javax.swing.JCheckBox CiclistaA;
    private javax.swing.JCheckBox Colectivo;
    private javax.swing.JTextField Comandante;
    private javax.swing.JTextField ComandanteGuardia;
    private javax.swing.JCheckBox Combustibles;
    private javax.swing.JCheckBox Cuellos;
    private javax.swing.ButtonGroup Decide;
    private javax.swing.ButtonGroup DecideDos;
    private javax.swing.ButtonGroup DecideTres;
    private javax.swing.JCheckBox Departamental;
    private javax.swing.JCheckBox Destapada;
    private javax.swing.JTextField Direccion;
    private javax.swing.JCheckBox Diurno;
    private javax.swing.JTextField Folionumero;
    private javax.swing.JCheckBox Galones;
    private javax.swing.JCheckBox Hidraulico;
    private javax.swing.ButtonGroup Horario;
    private javax.swing.JCheckBox Jardinera;
    private javax.swing.JTable Jtabla;
    private javax.swing.JTextField JtextClase;
    private javax.swing.JTextField JtextColor;
    private javax.swing.JTextField JtextConductor;
    private javax.swing.JTextField JtextEmpresa;
    private javax.swing.JTextField JtextMarcas;
    private javax.swing.JTextField JtextModelo;
    private javax.swing.JTextField JtextPlacas;
    private javax.swing.JTextField Kilometros;
    private javax.swing.JTextField LugarAccidente;
    private javax.swing.JCheckBox Manguera1;
    private javax.swing.JCheckBox Manguera2;
    private javax.swing.JTextField Maquina;
    private javax.swing.JCheckBox Materiales;
    private javax.swing.JCheckBox Motocicleta;
    private javax.swing.JTextField Motorista;
    private javax.swing.JCheckBox Municipal;
    private javax.swing.JCheckBox Nacional;
    private javax.swing.JCheckBox Nocturno;
    private javax.swing.JTextField NomHerido;
    private javax.swing.JTextField NomVictima;
    private javax.swing.JTextField NombreReporto;
    private javax.swing.JTextField Numero;
    private javax.swing.JCheckBox ObjetoFijo;
    private javax.swing.JCheckBox ObjetoMovil;
    private javax.swing.JCheckBox Otra;
    private javax.swing.JCheckBox Otro4;
    private javax.swing.JCheckBox Otro5;
    private javax.swing.JCheckBox Otros2;
    private javax.swing.JCheckBox Otros3;
    private javax.swing.JCheckBox Particular;
    private javax.swing.JCheckBox Pavimentada;
    private javax.swing.JCheckBox PeatonA;
    private javax.swing.JTextField Propietario;
    private javax.swing.JCheckBox Publico;
    private javax.swing.JCheckBox Quimicos;
    private javax.swing.JCheckBox Rural;
    private javax.swing.ButtonGroup Servicio;
    private javax.swing.JCheckBox Taxi;
    private javax.swing.JCheckBox Tractomula;
    private javax.swing.JCheckBox Tractor;
    private javax.swing.JCheckBox Urbano;
    private javax.swing.JCheckBox Vegetales;
    private javax.swing.ButtonGroup Via;
    private javax.swing.JCheckBox Volcamiento;
    private javax.swing.JCheckBox Volqueta;
    private javax.swing.ButtonGroup Zona;
    private datechooser.beans.DateChooserCombo dateChooserCombo1;
    private javax.swing.JTextField hora;
    private javax.swing.JTextField hora1;
    private javax.swing.JTextField hora2;
    private javax.swing.JTextField hora3;
    private javax.swing.JTextField hora4;
    private javax.swing.JTextField hora5;
    private javax.swing.JTextField hora6;
    private javax.swing.JComboBox horario;
    private javax.swing.JComboBox horario1;
    private javax.swing.JComboBox horario2;
    private javax.swing.JComboBox horario3;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton17;
    private javax.swing.JButton jButton18;
    private javax.swing.JButton jButton19;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton9;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JCheckBox jCheckBox2;
    private javax.swing.JCheckBox jCheckBox3;
    private javax.swing.JCheckBox jCheckBox4;
    private javax.swing.JCheckBox jCheckBox5;
    private javax.swing.JCheckBox jCheckBox6;
    private javax.swing.JCheckBox jCheckBox7;
    private javax.swing.JCheckBox jCheckBox8;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboGrado;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPane2;
    private javax.swing.JTabbedPane jTabbedPane3;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable3;
    private javax.swing.JTextArea jTextAreaCinematica;
    private javax.swing.JTextArea jTextAreaInformo;
    private javax.swing.JTextArea jTextAreaObserva;
    private javax.swing.JTextField jTextCamillas;
    private javax.swing.JTextField jTextCuellos;
    private javax.swing.JTextField jTextField18;
    private javax.swing.JTextField jTextField19;
    private javax.swing.JTextField jTextField24;
    private javax.swing.JTextField jTextField25;
    private javax.swing.JTextField jTextField26;
    private javax.swing.JTextField jTextField27;
    private javax.swing.JTextField jTextGalones;
    private javax.swing.JTextField jTextHidraulico;
    private javax.swing.JTextField jTextJardinera;
    private javax.swing.JTextField jTextLesionados;
    private javax.swing.JTextField jTextManguera1;
    private javax.swing.JTextField jTextManguera2;
    private javax.swing.JTextField jTextOtra;
    private javax.swing.JTextField jTextOtro4;
    private javax.swing.JTextField jTextOtro5;
    private javax.swing.JTextField jTextOtros2;
    private javax.swing.JTextField jTextOtros3;
    private javax.swing.JTextField jTextVictimasF;
    private javax.swing.JTextField minutos;
    private javax.swing.JTextField minutos1;
    private javax.swing.JTextField minutos2;
    private javax.swing.JTextField minutos3;
    private javax.swing.JTextField minutos4;
    private javax.swing.JTextField minutos5;
    private javax.swing.JTextField minutos6;
    // End of variables declaration//GEN-END:variables
}
